package com.guangyunl.c_array;
// 创建两个数组，互不影响
public class Demo02Array {
    public static void main(String[] args) {
        int[] arr1 = new int[3];
        System.out.println("arr1数组的地址值为: " + arr1); // 地址值
        System.out.println("arr1[1] = " + arr1[1]); // 0
        arr1[1] = 100;

        int[] arr2 = new int[3];
        System.out.println("arr2数组的地址值为: " + arr2); // 地址值
        System.out.println("arr2[1] = " + arr2[1]); // 0
        arr2[1] = 200;

        System.out.println("arr1[1] = " + arr1[1]); // 100
        System.out.println("arr2[1] = " + arr2[1]); // 200
    }
}

/*
arr1数组的地址值为: [I@6d311334
arr1[1] = 0
arr2数组的地址值为: [I@6d03e736
arr2[1] = 0
arr1[1] = 100
arr2[1] = 200
 */